package cn.k.mapper;

import cn.k.domain.Permission;
import cn.k.qo.PageResult;
import cn.k.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);


    List<Permission> selectForList(QueryObject qo);

    //批量插入
    void batchInsert(@Param("permissions") Set<Permission> permissions);

    List<Permission> selectRoleById(Long roleId);

    List<String> selectExpressionByEmployeeId(Long employeeId);

    List<String> selectByEmpId(Long employeeId);
}